home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 051-075 / disk_068 / mg1b / sys / amiga / makefile.manx < prev    next >
Makefile  |  1992-05-06  |  6KB  |  191 lines

  1. #
  2. # Makefile for Amiga MicroGNUmacs, using Manx small model.
  3. #
  4. #    This Makefile should be executed in the main Emacs directory.
  5. #
  6. # System-dependent conditional compilation possibilities:
  7. #
  8. #    V11        -- must be defined for the editor to either run on
  9. #               or compile on a version 1.1 AmigaDOS system.
  10. #               It mainly wards against bugs in the 1.1 ROM
  11. #               Kernel.
  12. #
  13. #    STARTUP        -- if defined, code for using a startup file
  14. #               is included.  This is handy for folks who
  15. #               won't be able to hack the editor to their
  16. #               taste.
  17. #
  18. #    MENU        -- if defined, Intuition menu selection is
  19. #               enabled.  If you #define this, the XOBJ macro
  20. #               must contain $(MENUOBJ).
  21. #
  22. #    BROWSER        -- BROWSER uses the Amiga menu to present a MENU of
  23. #               files. Selecting a directory entry (ends with a /)
  24. #               makes the contents if that directory the next menu
  25. #               (deleting any menus that used to follow it);
  26. #               selecting a plain file does a "find-file" on that
  27. #               file name. Really has to be seen to be understood.
  28. #               XOBJ must contain $(MENUOBJ) for this to link.
  29. #
  30. #    MOUSE        -- if defined, the Amiga mouse is active.
  31. #               If you #define this, XOBJ must contain $(MOUSEOBJ)
  32. #
  33. #    TOGGLE_ZOOMS    -- the function toggle-menu-hack switches between
  34. #               a bordered, sizeable window and a borderless
  35. #               window.  By default, the borderless window
  36. #               retains the size of the sizeable window.
  37. #               If TOGGLE_ZOOMS is #defined, however, the
  38. #               borderless window always takes up the whole
  39. #               screen.
  40. #
  41. #    XKEYS        -- if defined, the editor understands the Amiga
  42. #               function keys.
  43. #
  44. #    BACKUP        -- Allow for the creation of backup files. If this
  45. #               option is defined, the function make-backup-files
  46. #               sets a flag that causes save-buffers (C-x C-s)
  47. #               to rename the original file to file~ before
  48. #               writing the file.  Nice if the space is available.
  49. #               By default, backup files are not made.  Calling
  50. #               make-backup-files with no argument enables this
  51. #               feature; calling it with an argument disables it.
  52. #
  53. #    DO_METAKEY    -- if defined, characters with high bit set (i.e.
  54. #               most ALT-ed characters in the usa0 keymap)
  55. #               are translated into internal META keys
  56. #
  57. #    CHANGE_COLOR    -- if defined, adds commands to manipulate
  58. #               the rendition of the mode line and the
  59. #               foreground and background color of the
  60. #               text window and mode line.  The names match
  61. #               the regular expression
  62. #               set-{text,mode}-{foreground,background}
  63. #    CHANGE_FONT    -- if defined, adds "set-font", which prompts
  64. #               for a font name and size, then tries to reopen
  65. #               the Emacs window using the new font.
  66. #
  67. #
  68. #    MODE_RENDITION    -- the these values indicate the way to render
  69. #    TEXT_RENDITION       characters in the text area and mode line.
  70. #               TEXT_RENDITION is mainly there for completeness.
  71. #               Possible values are:
  72. #                0 -- plain text
  73. #                1 -- boldface
  74. #                3 -- italic
  75. #                4 -- underscore
  76. #                7 -- reverse-video (default if not defined)
  77. #
  78. #    TEXT_FG        -- specifies which system color (0-7) to use
  79. #    TEXT_BG           when drawing the text and mode line.  If they
  80. #    MODE_FG           aren't between 0 and 7, or if a combination
  81. #    MODE_BG           comes out badly, it's *YOUR* fault.  If
  82. #               CHANGE_COLOR is defined, you get to change these
  83. #               values on the fly.  Naturally, making both
  84. #               FG and BG the same results in an unusable display...
  85. #
  86. ############################################################################
  87. SYS    = amiga
  88. S    = sys/amiga
  89. TTY    = amiga
  90. T    = tty/amiga
  91. LIBS    = -lc
  92.  
  93. #
  94. # PREFS contains the defines used to select compile-time options.
  95. # XOBJ is used to denote any extra object files needed for these
  96. # options.  MENUOBJ MOUSEOBJ denote the extra object files needed
  97. # for the menu, mouse and Browser.
  98.  
  99. MOUSEOBJ = ttymouse.o
  100. MENUOBJ  = ttymenu.o menustack.o
  101.  
  102. # The big burrito, with the Browser *and* the editing MENU.  Tough
  103. # on space, but boy is it neat...
  104. PREFS = -DSTARTUP  -DBROWSER -DMENU -DMOUSE -DCHANGE_FONT \
  105.     -DCHANGE_COLOR -DXKEYS -DDO_METAKEY -DBACKUP
  106. XOBJ  = $(MOUSEOBJ) $(MENUOBJ)
  107.  
  108. # Burrito style, with just the Browser...
  109. #PREFS = -DSTARTUP  -DBROWSER -DMOUSE -DCHANGE_COLOR -DXKEYS -DDO_METAKEY -DBACKUP
  110. #XOBJ  = $(MOUSEOBJ) $(MENUOBJ)
  111.  
  112. # Burrito style, with just the menu...
  113. #PREFS = -DSTARTUP  -DMENU -DMOUSE -DCHANGE_COLOR -DXKEYS -DDO_METAKEY -DBACKUP
  114. #XOBJ  = $(MOUSEOBJ) $(MENUOBJ)
  115.  
  116. # Mike's favorite version
  117. #PREFS = -DMOUSE -DBROWSER -DMODE_RENDITION=0 -DMODE_FG=2 -DDO_METAKEY -DGOSREC -DV11 -DMEYN
  118. #XOBJ = $(MOUSEOBJ) $(MENUOBJ)
  119.  
  120. # Mic's favorite version
  121. #PREFS = -DSTARTUP -DBROWSER -DMENU -DMOUSE -DXKEYS -DDO_METAKEY -DBACKUP
  122. #XOBJ  = $(MOUSEOBJ) $(MENUOBJ)
  123.  
  124. # Absolutely bare-bones, default editor (~49K with Manx small model)
  125. #PREFS = -DDO_METAKEY
  126. #XOBJ  =
  127.     
  128. CFLAGS = -I$(T) -I$(S) $(PREFS) -DMANX
  129.  
  130. OBJ   =    basic.o buffer.o cinfo.o display.o echo.o extend.o file.o kbd.o \
  131.     line.o main.o match.o random.o region.o search.o symbol.o version.o \
  132.     window.o paragraph.o prefix.o word.o \
  133.     fileio.o spawn.o sleep.o\
  134.     ttyio.o tty.o ttykbd.o console.o $(XOBJ)
  135. #
  136. # OSRCS = system-dependent modules, SRCS = denotes system-independent ones
  137. #
  138. OSRCS = $(S)/fileio.c $(S)/spawn.c $(S)/sleep.c \
  139.     $(T)/ttyio.c $(T)/tty.c $(T)/ttykbd.c $(T)/console.c \
  140.     $(T)/ttymenu.c $(T)/menustack.c $(T)/ttymouse.c
  141.  
  142. SRCS  =    basic.c buffer.c cinfo.c display.c echo.c extend.c file.c kbd.c \
  143.     line.c main.c match.c random.c region.c search.c symbol.c version.c \
  144.     window.c word.c paragraph.c prefix.c
  145. #
  146. # Include files
  147. #
  148. OINCS =    $(T)/ttydef.h $(S)/sysdef.h
  149. INCS  =    def.h
  150.  
  151. #
  152. # The editor
  153. #
  154. mg:        $(OBJ)
  155.         copy df0:lib/c.lib ram:
  156.         set CLIB=ram:
  157.         ln -o mg $(OBJ) $(LIBS)
  158.         delete ram:c.lib
  159.  
  160. $(OBJ):        $(INCS) $(OINCS)
  161.  
  162. fileio.o:    $(S)/fileio.c
  163.         cc $(CFLAGS) -o fileio.o $(S)/fileio.c
  164.  
  165. spawn.o:    $(S)/spawn.c
  166.         cc $(CFLAGS) -o spawn.o $(S)/spawn.c
  167.  
  168. sleep.o:    $(S)/sleep.c
  169.         cc $(CFLAGS) -o sleep.o $(S)/sleep.c
  170.  
  171. tty.o:        $(T)/tty.c
  172.         cc $(CFLAGS) -o tty.o $(T)/tty.c
  173.  
  174. ttyio.o:    $(T)/ttyio.c
  175.         cc $(CFLAGS) -o ttyio.o $(T)/ttyio.c
  176.  
  177. ttykbd.o:    $(T)/ttykbd.c
  178.         cc $(CFLAGS) -o ttykbd.o $(T)/ttykbd.c
  179.  
  180. ttymenu.o:    $(T)/ttymenu.c
  181.         cc $(CFLAGS) -o ttymenu.o $(T)/ttymenu.c
  182.  
  183. ttymouse.o:    $(T)/ttymouse.c
  184.         cc $(CFLAGS) -o ttymouse.o $(T)/ttymouse.c
  185.  
  186. menustack.o:    $(T)/menustack.c
  187.         cc $(CFLAGS) -o menustack.o $(T)/menustack.c
  188.  
  189. console.o:    $(T)/console.c
  190.         cc $(CFLAGS) -o console.o $(T)/console.c
  191.